#include <stdio.h>
#include <stdlib.h>
double power(double x, int n)
{
	double s;
	if (n==0)
	{
		return 1;
	}
	else 
	{
		if (n & 1 == 1)
		{
			return power (x, n-1) * x;
		}
		else 
		{
			s = power (x, n>>1);
			return s*s;
		}
	}
}       
int main()
{
	double x;
	int n;
	printf("Vvedite chislo i stepen' cherez enter\n");
	scanf("%lf %d", &x, &n);
	printf("%lf\n", power( x, n));
	system("pause");
}